package com.designpatternspart2.creationaldesignpatterns.abstractfactory;

/**
 * File Name: AbstractFactory.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.abstractfactory
 * Author: Lance
 * Date: Apr 26, 2012
 */
public class AbstractFactory
{

    public SpeciesFactory getSpeciesFactory(String type)
    {
        if ("mammal".equals(type))
        {
            return new MammalFactory();
        }
        else
        {
            return new ReptileFactory();
        }
    }
}
